import request from '@/utils/request'
import upload from '@/utils/upload'

// 提取转换链接
export function analysisUrl (data) {
  // const {url} = data
  return request({
    // url: `/business/wxAnalyze/removeWatermark`,
    url: `/business/video/removeWatermark`,
    method: 'get',
    params: data
  })
}

// 提取转换链接
export function getUrlVideoText (data) {
  return request({
    url: `/business/tQText/getUrlVideoText`,
    method: 'get',
    params: data
  })
}

// 获取配音列表
export function getDubbingArtist (data) {
  return request({
    url: `/business/dub/dubbingArtist`,
    method: 'get',
    params: data
  })
}

// 导出配音
export function dubDeriveDub (data) {
  return request({
    url: `/business/dub/deriveDub`,
    method: 'post',
    data: data
  })
}

// 试听
export function dubAudition (data) {
  return request({
    url: `/business/dub/audition`,
    method: 'post',
    data: data
  })
}

// 获得会员任务分页
export function getMemberTask (data) {
  return request({
    url: `/business/memberTask/page`,
    method: 'post',
    data: data
  })
}

// 获得卡通头像
export function getImage (data) {
  return request({
    url: `/business/cartoonedImage/getImage`,
    method: 'post',
    data: data
  })
}

// 上传文件
export function uploadFile (data) {
  return upload({
    url: '/infra/file/upload',
    name: data.name,
    filePath: data.filePath
  })
}